package main

import "fmt"

//切片循环
func main() {
	var arr = []int{1, 2, 3, 4}
	var arr2 = make([]int, 10)

	//arr copy to arr2
	//copy两个参数必须都是切片
	//arr and arr2 is 独立的
	copy(arr2, arr)
	fmt.Println(arr)
	fmt.Println(arr2)
}
